package com.pp.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 首页
 * </p>
 *
 * @author 冯政尚
 * @since 2019-04-03
 */
@ApiModel(value="GovIndex对象", description="首页")
public class GovIndex extends Model<GovIndex> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(
            value =
            "图片详细定位 " +
            "------首页------ " +
            "1首页关于我们， " +
            "2 首页商品图， " +
            "3，商品下banner，" +
            "4，首页精彩故事 ")
    @TableField("location")
    private Integer location;

    @ApiModelProperty(value = "语言 中文 1   英文 2")
    @TableField("lang")
    private Integer lang;

    @ApiModelProperty(value = "路径")
    @TableField("url")
    private String url;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getId() {
        return id;
    }



    public void setId(Long id) {
        this.id = id;
    }
    public Integer getLocation() {
        return location;
    }

    public void setLocation(Integer location) {
        this.location = location;
    }
    public Integer getLang() {
        return lang;
    }

    public void setLang(Integer lang) {
        this.lang = lang;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GovIndex{" +
        "id=" + id +
        ", location=" + location +
        ", lang=" + lang +
        ", url=" + url +
        "}";
    }
}
